local sk__jiquan_active = fk.CreateSkill {

  name = "#sk__jiquan_active",

  tags = {  },

}



sk__jiquan_active:addEffect("active", {
  name = "#sk__jiquan_active",
  mute = true,
  min_card_num = 0,
  target_num = 0,
  interaction = function(self,player)
    local skills = {"Cancel"}
    table.insertTable(skills, table.map(table.filter(player.player_skills, function(skill)
      return skill:isPlayerSkill(player) and skill.visible
    end), function(s)
      return s.name
    end))
    return UI.ComboBox {choices = skills}
  end,
  card_filter =function(self, player, to_select, selected)
    if self.interaction.data == "Cancel" then
      return #selected < player:getMark("sk__jiquan-tmp")
    else
      return false
    end
  end,
  feasible =function (self,player, selected, selected_cards )
    if #selected_cards > 0 then
      return self.interaction.data == "Cancel" and #selected_cards == player:getMark("sk__jiquan-tmp")
    else
      return true
    end
  end,
})

return sk__jiquan_active